package com.example.graduation.vo;

import lombok.Data;

/**
 * ProjectName graduation
 * 购物车商品列表具体数据抽象层
 *
 * @author xieyucan
 * <br>CreateDate 2022/3/22 13:43
 */
@Data
public class GoodsVo {

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 商店id
     */
    private Integer shopId;

    /**
     * 商品最新价格
     */
    private Double newPrice;

    /**
     * 商品状态
     */
    private Integer status;

    /**
     * 商品名称
     */
    private String goodsName;


    /**
     * 添加入购物车的数量
     */
    private Integer addCount;

    /**
     * 商品图片
     */
    private String photo;

    /**
     * 该商品的总花费=addCount*newPrice
     */
    private Double sumPrice;

    /**
     * 是否被选中，表示在计算价格的时候，是否加入一起统计总价格
     */
    private Boolean isSelect;

    public GoodsVo(Integer goodsId, Integer shopId, Double newPrice, Integer status,
                   String goodsName, Integer addCount, String photo,
                   Double sumPrice, Boolean isSelect) {
        this.goodsId = goodsId;
        this.shopId = shopId;
        this.newPrice = newPrice;
        this.status = status;
        this.goodsName = goodsName;
        this.addCount = addCount;
        this.photo = photo;
        this.sumPrice = sumPrice;
        this.isSelect = isSelect;
    }
}
